package com.ztgf.commodity.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.commodity.models.bo.CommoditySpecificationCategoryRelationSaveBO;
import com.ztgf.commodity.models.dto.CommoditySpecificationCategoryRelationDTO;
import com.ztgf.commodity.models.vo.SpecificationCategoryVO;

import java.util.List;

/**
 * 分类规格关系表服务
 *
 * @author chenyu.wang
 * @Date 2020-05-27 11:05:46
 */
public interface ICommoditySpecificationCategoryRelationService extends IService<CommoditySpecificationCategoryRelationDTO> {

    /**
     * description: 添加
     * param: [saveBO]
     * author: chenyu.wang
     * date: 2020-05-27
     * return: boolean
     */
    boolean add(CommoditySpecificationCategoryRelationSaveBO saveBO);

    /**
     * description: 根据分类id，查询关联规格信息，用于上传商品位置
     * param: [id]
     * author: chenyu.wang
     * date: 2020-06-03
     * return: java.util.List<com.ztgf.commodity.models.vo.SpecificationCategoryVO>
     */
    List<SpecificationCategoryVO> getSpecificationCategory(Long id, Long brandId,String filterName);

    /**
     * description: 批量添加
     * param: [userId, categoryId, ids]
     * author: chenyu.wang
     * date: 2020-07-07
     * return: boolean
     */
    void addList(Long userId, Long categoryId, String ids);

    /**
     * description: 根据分类id删除关联规格
     * param: [categoryId]
     * author: chenyu.wang
     * date: 2020-07-29
     * return: boolean
     */
    boolean deleteAccordingToCategoryId(Long categoryId);
}
